package com.pdh.controller;

import com.pdh.mvc.ResponseBody;
import com.pdh.mvc.ResponseView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: 彭_德华
 * @Date: 2021-09-15 19:38
 */
public class UserController {
    @ResponseBody("/login.do")
    public String login(HttpServletRequest req, HttpServletResponse rsp){
        return "登陆成功";
    }

    @ResponseView("/reg.do")
    public String reg(HttpServletRequest req, HttpServletResponse rsp){
        return "index.html";
    }
}
